<!-- Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.  -->

<%@ page import="java.util.List"%>
<%@ page import="com.riq.entity.Department"%>
<%@ page import="com.riq.entity.Member"%>
<%@ page import="java.util.logging.Logger"%>
<%@ page import="java.io.IOException"%>
<%@ page import="javax.servlet.*"%>

<% 
Member m = (Member) request.getAttribute("member"); 
%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>FirstResponder</title>

<!--META-->
<meta http-equiv="content-type"  content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width" />

<!--STYLESHEET-->
<link rel="stylesheet" type="text/css" href="stylesheets/static.css" />

</head>
<body>

<!--FIXED HEADERS-->
<div class="headwrap">
<div class="hBlack">
<div class="headerLeftTop">FirstResponder</div>
<div class="headerRightTop">ver 0.9</div>
<div class="headerLeftBottom">Member: Display</div>
<div class="headerRightBottom">Main</div>
</div>
<div class="hGray">
  <a class="buttonGrayHdr" href="mainMenu.html">Main</a>
  <a class="buttonGrayHdr" href="commandMenu.html">Command</a>
  <a class="buttonGrayHdr gSelected" href="department?action=display">Admin</a>
</div>
<div class="headerMist"></div>
</div>

<div class="outwrap">
<div class="headerPlug"></div>

<!--BUTTONS-->

<div id="centeredButtons"><ul><li>

  <a class="button green narrow tall" style="margin-bottom: 15px" 
  href="c?action=SendCookieResetSMS&memberId=<%=m.getid()%>">
  Send Cookie<p></p>to Member</a></li><li>
  
  <a class="button green narrow tall"
  href="member?action=edit&memberId=<%=m.getid()%>">
  Edit Member</a></li></ul>
  
</div>

<div id="centeredButtons"><ul><li>

  <a class="button blue narrow tall last"
  href="department?action=display">
  Back</a></li><li>
  
  <a class="button red narrow tall last" 
  href="member?action=delete&memberId=<%=m.getid()%>">
  Delete Member</a></li>

</ul></div>

<div class="sub black">Member</div>

<div class="row title">Name: </div>
<div class="row" style="clear: none"><%=m.getlastName()%>, <%=m.getfirstName()%></div>
<div class="row title">Tracking: </div>
<div class="row" style="clear: none"><%=m.gettrackingFlag()%></div>
<div class="row title">Type: </div>
<div class="row" style="clear: none"><%=m.gettype()%></div>
<div class="row title">SMS: </div>
<div class="row" style="clear: none"><%=m.getsmsAddress()%></div>
<div class="row title">Caller ID1: </div>
<div class="row" style="clear: none"><%=m.getcallerId1()%></div>
<div class="row title">Caller ID2: </div>
<div class="row" style="clear: none"><%=m.getcallerId2()%></div>
<div class="row title">Caller ID3: </div>
<div class="row" style="clear: none"><%=m.getcallerId3()%></div>
<div class="row title">Member Hash: </div>
<div class="row" style="clear: none"><%=m.getcookieHash()%></div>
<div class="row title">Latitude ID: </div> 
<div class="row" style="clear: none"><%=m.getlatitudeId()%></div>
<div class="row title">Distance: </div>
<div class="row" style="clear: none"><%=m.getdistance()%></div>
<div class="row title">Tracking Flag: </div>
<div class="row" style="clear: none"><%=m.gettrackingFlag()%></div>

<!-- TODO: ADMIN: REMOVE AT LAUNCH-->
<div id="centeredButtons"><ul><li>
<a class="button green wide tall" href="c?action=SetPermCookies&memberHash=<%=m.getcookieHash()%>"> 
Set Cookies for Member<p></p>(Note: Remove at Launch)</a>
</li></ul></div>

<!--FOOTER-->
<div class="footer">FirstResponder</div>

<!--OUTLINE WRAPPER -->
</div> 

</body>
</html>
